package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

/**
 * 用户服务接口
 */
public interface UserService {
    User findByUsername(String username);

    void add(User user,Integer[] roleIds);

    PageResult findPage(QueryPageBean queryPageBean)throws Exception;

    User findById(Integer id);

    List<Integer> findRoleByUserId(Integer id);

    void edit(Integer[] roleIds, User user);

    void delete(Integer id);

    String findUserImg(String username);
	void exchange(String username, String encode);

    String check(String username);
}
